package org.dromara.system.domain.bo;

import org.dromara.system.domain.YzlScheduleTask;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 任务业务对象 yzl_schedule_task
 *
 * @author wfy
 * @date 2025-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = YzlScheduleTask.class, reverseConvertGenerate = false)
public class YzlScheduleTaskBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 备注
     */
    private String remarks;

    private Long parentId;

    /**
     * 编制主键
     */
    @NotNull(message = "编制主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long formationId;

    /**
     * 任务名称
     */
    @NotBlank(message = "任务名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskName;

    /**
     * WBS
     */
    private String wbs;

    /**
     * 工期
     */
    private String workDay;

    /**
     * 工时
     */
    private String workTime;

    /**
     * 完成百分比
     */
    private Float completionPercentage;

    /**
     * 开始时间
     */
    @NotNull(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 结束时间
     */
    @NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 限制类型(1越早越好2越晚越好3必须开始于4必须完成于5不得早于...开始6不得晚于..开始7不得早于...完成8不得晚于...完成)
     */
    private String restrictionType;

    /**
     * 限制日期
     */
    private Date restrictionDay;

    /**
     * 里程碑(0否 1是)
     */
    private String milestone;

    /**
     * 关键任务(0否 1是)
     */
    private String keyTask;


}
